package com.bw.controller;

import com.bw.entity.vo.InterVo;
import com.bw.service.AdmService;
import com.bw.service.ConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @program: shujuzhongxin
 * @description:
 * @author: Mr.Wang
 * @create: 2020-06-03 14:24
 **/
@RestController
@SuppressWarnings("all")
public class ConfigController {
    @Autowired
    private ConfigService configService;
    @GetMapping("ConfigList")
    List<InterVo> ConfigList(@RequestParam("mohu")String mohu){
        return configService.ConfigList(mohu);
    }

    @RequestMapping("batchesdel")//批量删除
    void batchesdel(@RequestParam("ids") String ids){
        this.configService.batchesdel(ids);
    }
    @RequestMapping("startbatches")//批量启动
    void startbatches(@RequestParam("ids") String ids){
        this.configService.startbatches(ids);
    }
    @RequestMapping("forbiddenbatches")//批量启动
    void forbiddenbatches(@RequestParam("ids") String ids){
        this.configService.forbiddenbatches(ids);
    }
    @RequestMapping("addportconfiguration")//添加接口配置
    InterVo addportconfiguration(InterVo interVo){
        return this.configService.addportconfiguration(interVo);
    }
}
